package lab02.test09;

public class Student {
    int number;  //  学号
    int classroom;//班级号
    String name;
    String sex;
    int age;
    public Student
             (
            int number,
                    int classroom,
                    String name,
                    String sex,
                    int age
             )
    {
        this.number = number;
        this.classroom=classroom;
        this.name = name;
        this.sex = sex;
        this.age = age;
    }
    public Student() {

    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number= number;
    }

    public int getClassroom() {
        return classroom;
    }

    public void setClassroom(int classroom) {
        this.classroom = classroom;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override

    public String toString() {
        return "Student{" +
                "学号=" + number +
                "班级=" + classroom +
                "name 姓名='" + name + '\'' +
                "sex='" + sex + '\'' +
                "age=" + age +
                '}';

    }
}
